# coding:utf-8
from views.jd_api import jd_api
from views.dy_api import dy_api
from views.yp_api import yp_api
from views.xhs_api import xhs_api
from sanic import Sanic, json



def create_app():
    # 实例化对象
    app = Sanic(__name__)

    # 注册蓝图 直接blueprint
    app.blueprint(jd_api)
    app.blueprint(dy_api)
    app.blueprint(yp_api)
    app.blueprint(xhs_api)

    return app
